
#include "cocos2d.h"
#include "Director/DifficultyFactors/DifficultyFactor.h"
#include "Director/DifficultyFactors/CharacterSpeed.h"

#include "config.h"
#include "src/TestMacros.h"
#include "src/CheckMacros.h"
#include "src/TestRunner.h"
#include "src/TimeConstraint.h"
#include "src/ReportAssert.h"

using namespace cocos2d;
using namespace UnitTest;

SUITE(DifficultyFactor)
{

	// Changed from protected to public for testing
	/*TEST(GetDifficultyLevel)
	{
		DifficultyFactor* myDifficultyFactor = new CharacterSpeed(0.5, 50);

		CHECK_EQUAL(myDifficultyFactor->getDifficultyLevel(0), 1);
		CHECK_EQUAL(myDifficultyFactor->getDifficultyLevel(-42), 1);

		//cleanup
		delete myDifficultyFactor;
		myDifficultyFactor = 0;
	}

	TEST(UpdateDifficulty)
	{
		DifficultyFactor* myDifficultyFactor = new CharacterSpeed(0.5, 50);

		CHECK_EQUAL(myDifficultyFactor->updateDifficulty(0), false);
		CHECK_EQUAL(myDifficultyFactor->updateDifficulty(-42), false);

		CHECK_EQUAL(myDifficultyFactor->updateDifficulty(100), true);
		CHECK_EQUAL(myDifficultyFactor->updateDifficulty(100), false);

		//cleanup
		delete myDifficultyFactor;
		myDifficultyFactor = 0;
	}*/


}
